package com.example.disconf.demo.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


/**
 * 演示分布式配置文件、分布式配置的更新Demo
 *
 * @author liaoqiqi
 * @version 2014-6-17
 */
@Service
public class DisconfDemoTask {

	protected static final Logger LOGGER = LoggerFactory.getLogger(DisconfDemoTask.class);

	private static final String REDIS_KEY = "disconf_key";

	public int run() {
		try {
			while (true) {
				Thread.sleep(5000);
				System.out.println("这是一个更新下载器~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
			}
		} catch (Exception e) {
			LOGGER.error(e.toString(), e);
		}
		return 0;
	}
}
